<?php

/**
 * objetivos filter form base class.
 *
 * @package    plagas
 * @subpackage filter
 * @author     Your name here
 * @version    SVN: $Id: sfDoctrineFormFilterGeneratedTemplate.php 29570 2010-05-21 14:49:47Z Kris.Wallsmith $
 */
class archivarFormFilter extends BaseFormFilterDoctrine
{
  public function setup()
  {
    $this->setWidgets(array(
      'hasta_fecha' => new sfWidgetFormDate(),
    ));

    $this->setValidators(array(
      'hasta_fecha' => new sfValidatorDate(),
    ));

    $this->widgetSchema->setNameFormat('informes_filters[%s]');

    $this->errorSchema = new sfValidatorErrorSchema($this->validatorSchema);

    $this->setupInheritance();

    parent::setup();
  }

  public function getModelName()
  {
    return 'objetivos';
  }

  public function getFields()
  {
    return array(
      'id'           => 'Number',
      'indicador_id' => 'ForeignKey',
      'mes'          => 'Number',
      'ano'          => 'Number',
      'valor'        => 'Number',
    );
  }
}
